/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面基础样式 */
html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.nav {
    height: 60px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav > img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav > img:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 自定义Logo样式 */
.logo-container {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-right: 15px;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.nav > .space {
    flex: 1;
}

.nav > .blog-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-right: 20px;
}

.nav > .nav-span {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
    position: relative;
    overflow: hidden;
}

.nav > .nav-span:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav > .nav-span:hover {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav > .nav-span:hover:before {
    left: 0;
}

/* 主容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    height: calc(100vh - 60px);
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.container > .left {
    width: 280px;
    position: sticky;
    top: 20px;
}

.container > .right {
    flex: 1;
    min-height: calc(100vh - 100px);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
}

/* 左侧卡片样式 */
.container > .left > .card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.left > .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.left > .card > img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #007bff;
    transition: all 0.3s ease;
}

.left > .card > img:hover {
    transform: scale(1.1);
    border-color: #0056b3;
}

.left > .card > h3 {
    color: #2c3e50;
    margin: 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.left > .card > a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 20px;
}

.left > .card > a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.left > .card > .row {
    width: 100%;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left > .card > .row > span {
    flex: 1;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.left > .card > .row:first-of-type {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.left > .card > .row:last-of-type > span {
    color: #007bff;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        height: 50px;
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .nav > .blog-title {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .nav > .nav-span {
        padding: 6px 12px;
        font-size: 14px;
        margin: 0 2px;
    }
    
    .container {
        width: 95%;
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 50px);
        padding: 15px 0;
        gap: 15px;
    }
    
    .container > .left {
        width: 100%;
        position: static;
    }
    
    .container > .right {
        width: 100%;
        min-height: 60vh;
        padding: 20px;
    }
    
    .left > .card {
        padding: 20px;
    }
    
    .left > .card > img {
        width: 60px;
        height: 60px;
    }
    
    .left > .card > h3 {
        font-size: 16px;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .nav {
        height: 45px;
        padding: 0 10px;
    }
    
    .nav > img {
        width: 35px;
        height: 35px;
        margin: 0 8px;
    }
    
    .nav > .blog-title {
        font-size: 14px;
    }
    
    .nav > .nav-span {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .container {
        padding: 10px 0;
    }
    
    .container > .right {
        padding: 15px;
        border-radius: 12px;
    }
    
    .left > .card {
        padding: 15px;
        border-radius: 12px;
    }
}